<script setup lang="ts">
</script>

<template>
  <div class="card">
    <slot> <span>空白卡片</span> </slot>
  </div>
</template>

<style scoped>
.card {
  width: 275px;
  height: 400px;
  border-radius: 25px;
  transition: all 0.3s;
  overflow: hidden;
  background: white;
  border: 1px solid #e1e1e1;
}

.card:hover {
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.img {
  width: 100%;
  height: 40%;
  overflow: hidden;
}

.description p:first-child {
  font-weight: bold;
  font-size: 24px;
  text-align: center;
}

.description p:last-child {
  font-size: 16px;
  text-align: center;
  padding: 0 1em;
}
</style>
